package cn.i7baozh.api.handler;

import cn.i7baozh.api.entities.CommonResult;
import com.alibaba.csp.sentinel.slots.block.BlockException;

/**
 * @author : baoqi.zhang
 * @date :   2022/4/20 13:50
 */
public class CustomerBlockHandler {

    public static CommonResult handleException(String p1, String p2, BlockException exception) {
        return new CommonResult(401, "错误1");
    }

    public static CommonResult handleException1(String p1, String p2,BlockException exception) {
        return new CommonResult(402, "错误2");
    }
}
